import base64

with open("jianpan.mp3", "rb") as audio_file:
    audio_data = audio_file.read()
    base64_data = base64.b64encode(audio_data).decode("utf-8")
    print(base64_data)